<template>
	<view>
		<view v-if="tvlist.length==0">
			<u-empty mode="list" icon="http://cdn.uviewui.com/uview/empty/list.png" text="暂无数据">
			</u-empty>
		</view>

		<view v-else>
			<!-- 视频列表自定义组件 -->
			<videolist :videoList="tvlist"></videolist>
		</view>

	</view>
</template>

<script>
	import videolist from '@/components/videolist/videolist.vue';
	export default {
		components: {
			videolist,
		},
		data() {
			return {
				tvlist: []
			}
		},
		onLoad(options) {
			console.log("index_cate=", options.index_cate);
			vk.callFunction({
				url: 'client/video/pub/getmore',
				title: '请求中...',
				data: {
					appid: vk.vuex.get('$app.appid'),
					index_cate: options.index_cate
				},
				success: (data) => {
					this.tvlist = [];
					this.tvlist = data.tvlist.data
				}
			});
		},
		methods: {

		}
	}
</script>

<style>

</style>
